package it.softphone.cmc.server.service;

import it.softphone.cmc.server.service.exception.CMCException;

import org.apache.commons.vfs.FileObject;

import de.kalpatec.pojosr.framework.launch.PojoServiceRegistry;

public interface BundleService {

	interface Bundle {
		
		String getId();
		
		String getPath();
		
		ClassLoader getClassLoader();
		
		PojoServiceRegistry getServiceRegistry();
		
	}
	
	
	Bundle getBundle( String Id );
	
	Bundle createBundle( FileObject folder ) throws CMCException;

	java.util.Collection<Bundle> getBundles();
}
